{//<link href="__STATIC__/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/> }
<script src="__ROOT__/index.php?g={:GROUP_NAME}&m={:MODULE_NAME}&a={:ACTION_NAME}&act=loadjs"></script>
<if condition="APP_DEBUG">
    <script type="text/javascript" src="__STATIC__/vendor/require.js"></script>
    <script type="text/javascript" src="__STATIC__/vendor/underscore.js"></script>
    <script type="text/javascript" src="__STATIC__/vendor/underscore.mixin.js"></script>
</if>
<%_.each(rules,function(val,key){%>
<if condition="MODULE_NAME eq '<%=val%>'">
    <if condition="APP_DEBUG">
        <link href="__STATIC__/css/wap/<%=val%>.css" rel="stylesheet" type="text/css"/>
        <script type="text/javascript" src="__STATIC__/debug/wap.js"></script>
    <else/>
        <link href="__STATIC__/build/wap/<%=val%>.css?{:C('BUILDTIME')}" rel="stylesheet" type="text/css"/>
        <script type="text/javascript" src="__STATIC__/build/wap/app_<%=val%>.js?{:C("BUILDTIME")}"></script>
    </if>
<%});%>
<elseif condition="APP_DEBUG"/>
    <link href="__STATIC__/css/wap/{:C('default_theme')}.css" rel="stylesheet" type="text/css"/>
    <script type="text/javascript" src="__STATIC__/debug/wap.js"></script>
<else/>
    <link href="__STATIC__/build/wap/{:C('default_theme')}.css?{:C('BUILDTIME')}" rel="stylesheet" type="text/css"/>
    <script type="text/javascript" src="__STATIC__/build/wap/app_{:C('default_theme')}.js?{:C("BUILDTIME")}"></script>
</if>